﻿@model Kooboo.CMS.Content.Models.Schema
@{
    ViewBag.Title = "Create content type".Localize();
    Layout = "~/Views/Shared/Blank.cshtml";
}
@section Panel{
    <ul class="panel">
        <li>
            <a id="submitContentType">
                @Html.IconImage("save") @("Save".Localize())</a>
        </li>
        @foreach (var group in Kooboo.CMS.Sites.Extension.UI.TopToolbar.ToolbarButtons.GetToolbarButtons(ViewContext.RequestContext))
        {
            @Html.Partial("_ToolbarGroupButtons", group)
        }
        <li>
            <a href="@ViewContext.RequestContext.GetRequestValue("return")">
                @Html.IconImage("cancel") @("Back".Localize())</a>
        </li>
    </ul>
}
<form id="column-display-grid">
    <div class="topbar">
        <h1 class="title left">@ViewBag.Title:</h1>
        <p class="field left">
            @Html.EditorFor(m => m.Name, new { Layout = "_NoLabel.cshtml", HtmlAttributes = new RouteValueDictionary() { { "class", "medium" }, { "data-bind", "value:schemaModel.Name" } } })
        </p>
    </div>
    <div class="common-form fixed">
        @Html.Partial("_ContentType", new Kooboo.CMS.Content.Models.Schema())
    </div>
</form>

<div id="dialog" style="display: none">
    @Html.Partial("_EditColumn", new Kooboo.CMS.Content.Models.Column())
</div>
@Html.Partial("_ContentType.Scripts", new Kooboo.CMS.Content.Models.Schema())


